package org.jeecg.modules.demo.staffmanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: ProjectManagement
 * @Author: jeecg-boot
 * @Date: 2021-12-31
 * @Version: V1.0
 */
@Data
@TableName("staff_management")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "staff_management对象", description = "员工管理")
public class StaffManagement implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 员工姓名
     */
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "员工姓名")
    private String name;
    /**
     * 联系方式
     */
    @Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "联系方式")
    private String contact;
    /**
     * 工号
     */
    @Excel(name = "工号", width = 15)
    @ApiModelProperty(value = "工号")
    private String jobNumber;
    /**
     * 员工身份
     */
    @Excel(name = "员工身份", width = 15)
    @ApiModelProperty(value = "员工身份")
    private String employee;
    /**
     * 员工身份
     */
    @Excel(name = "员工身份ID", width = 15)
    @ApiModelProperty(value = "员工身份ID")
    private String employeeId;
    /**
     * 底薪
     */
    @Excel(name = "底薪", width = 15)
    @ApiModelProperty(value = "底薪")
    private Double basePay;
    /**
     * 总业绩
     */
    @Excel(name = "总业绩", width = 15)
    @ApiModelProperty(value = "总业绩")
    private Double totalSell;
    //销售提成
    @Excel(name = "销售提成", width = 15)
    @ApiModelProperty(value = "销售提成")
    private Double sellMoney;
    //服务提成
    @Excel(name = "服务提成", width = 15)
    @ApiModelProperty(value = "服务提成")
    private Double serveMoney;
    //累计提成
    @Excel(name = "累计提成", width = 15)
    @ApiModelProperty(value = "累计提成")
    private Double totalDeduction;
    //累计分红
    @Excel(name = "管家分红", width = 15)
    @ApiModelProperty(value = "累计分红")
    private Double totalShare;
    //总薪资
    @Excel(name = "总薪资", width = 15)
    @ApiModelProperty(value = "总薪资")
    private Double totalSalary;
    /**
     * 手动折扣限额
     */
    @Excel(name = "手动优惠金额", width = 15)
    @ApiModelProperty(value = "手动折扣限额")
    private Double manualDiscount;
    /**
     * 入职时间
     */
    @Excel(name = "入职时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入职时间")
    private Date entryTime;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 关联账号权限
     */
    @ApiModelProperty(value = "关联账号权限")
    private String storeId;


    private String userId;
}
